package com.soo.hoo.admin.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 礼簿详情清单关联的excel文件
 * </p>
 *
 * @author 杨燚
 * @since 2024-04-20
 */
@Getter
@Setter
@TableName("t_sys_book_resource")
@Schema(name = "SysBookResource", description = "礼簿详情清单关联的excel文件")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysBookResource implements Serializable {

    @Serial
    private static final long serialVersionUID = -3558134157260391337L;

    @Schema(description = "唯一标识")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "礼簿id，关联t_sys_book表id列")
    private Long bookId;

    @Schema(description = "上传的excel文件id，关联t_sys_file表id列")
    private Long fileId;
}
